//
//  MSAboutViewcontrollViewController.m
//  MinShengBank
//
//  Created by mac on 14-1-21.
//  Copyright (c) 2014年 Hq. All rights reserved.
//

#import "MSAboutViewcontrollViewController.h"

@interface MSAboutViewcontrollViewController ()

@end

@implementation MSAboutViewcontrollViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor colorWithHexString:@"f0f0f0"];
	UIView *loginView;
    if (isIOS7) {
        loginView = [[UIView alloc] initWithFrame:CGRectMake(0, 48, 320, 200)];
    } else loginView = [[UIView alloc] initWithFrame:CGRectMake(0, 28, 320, 200)];
    loginView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:loginView];
    
    
    
    UILabel *coment=[[UILabel alloc]initWithFrame:CGRectMake(5, 55, 310, 200)];
    coment.textAlignment = UITextAlignmentRight;
    coment.font=[UIFont systemFontOfSize:18.0];
    coment.backgroundColor = [UIColor clearColor];
    coment.numberOfLines=0;
    coment.lineBreakMode=NSLineBreakByCharWrapping;
    coment.alpha = 0.8;
    coment.text=@"无锡分行成立于2008年12月，为南京分行首家异地分支行。目前，全行共有员工近300人，设有公司银行部、风险管理部、金融市场部、票据业务部、小微金融部、财富管理部、运营管理部、计划财务部、人力资源部、法律合规部、办公室等11个职能部门；4个业务部门以及营业部、惠山支行、江阴支行、宜兴支行、锡山支行5个营业网点。";
    [loginView addSubview:coment];
    
    UILabel *tel=[[UILabel alloc]initWithFrame:CGRectMake(5, 265, 60, 30)];
    tel.textAlignment = UITextAlignmentLeft;
    tel.font=[UIFont systemFontOfSize:18.0];
    tel.backgroundColor = [UIColor clearColor];
    tel.alpha = 0.8;
    tel.text =@"电话:";
    [loginView addSubview:tel];
    
    UILabel *telvalue=[[UILabel alloc]initWithFrame:CGRectMake(65, 265, 200, 30)];
    telvalue.textAlignment = UITextAlignmentLeft;
    telvalue.font=[UIFont systemFontOfSize:18.0];
    telvalue.backgroundColor = [UIColor clearColor];
    telvalue.alpha = 0.8;
    telvalue.text =@"0510-81189800";
    [loginView addSubview:telvalue];
    
    UILabel *email=[[UILabel alloc]initWithFrame:CGRectMake(5, 300, 60, 30)];
    email.textAlignment = UITextAlignmentLeft;
    email.font=[UIFont systemFontOfSize:18.0];
    email.backgroundColor = [UIColor clearColor];
    email.alpha = 0.8;
    email.text =@"传真:";
    [loginView addSubview:email];

    UILabel *emailinfo=[[UILabel alloc]initWithFrame:CGRectMake(65, 300, 200, 30)];
    emailinfo.textAlignment = UITextAlignmentLeft;
    emailinfo.font=[UIFont systemFontOfSize:18.0];
    emailinfo.backgroundColor = [UIColor clearColor];
    emailinfo.alpha = 0.8;
    emailinfo.text =@"0510-81189800";
    [loginView addSubview:emailinfo];

    UILabel *adder=[[UILabel alloc]initWithFrame:CGRectMake(5, 335, 60, 30)];
    adder.textAlignment = UITextAlignmentLeft;
    adder.font=[UIFont systemFontOfSize:18.0];
    adder.backgroundColor = [UIColor clearColor];
    adder.alpha = 0.8;
    adder.text =@"地址:";
    [loginView addSubview:adder];

    
    UILabel *adderinfo=[[UILabel alloc]initWithFrame:CGRectMake(65, 335, 200, 50)];
    adderinfo.textAlignment = UITextAlignmentLeft;
    adderinfo.font=[UIFont systemFontOfSize:18.0];
    adderinfo.backgroundColor = [UIColor clearColor];
    adderinfo.alpha = 0.8;
    adderinfo.numberOfLines=0;
    adderinfo.lineBreakMode=NSLineBreakByCharWrapping;
    adderinfo.text =@"江苏省无锡市北塘区青石路1号";
    [loginView addSubview:adderinfo];
    
	self.title = @"个人设置";
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(10, 0, 30, 30);
    [button setImage:[UIImage imageNamed:@"返回.png"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(goBack) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
}

#pragma mark 返回
-(void)goBack
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
